// 每一个vuex的模块其实都是一个包含 state mutation actions getters属性对象，未来把对象交给newVuex.store的配置中作为模块进行配置
const state = {
    count: 0
}
const mutations = {
    increment(state, payload) {
        state.count += payload.n
    }
}

const actions = {}
const getters = {}

export default {
    state,
    mutations,
    actions,
    getters,
}